<div id="wrapper_contain">
<div class="prod_hot left">
    <h2 class="title">Sản phẩm hoa cưới nổi bật</h2>
    <ul>
        <?php
        $i = 0;
        $rs = $modelHome->getProductHotByFullParent(1,0,10);

        while($row = mysql_fetch_assoc($rs)){
            $url_images = str_replace("../upload", "../upload/c",$row['url_images']);
            $i++;
        ?>
        <li <?php echo ($i%5==0) ? "class='end'" : ""; ?>>
            <a href="#"><img src="<?php echo str_replace("../upload", "upload/c",$row['url_images'])?>" align="absmiddle" /></a>
            <div class="mask_pro" style="display:none;">
                <a class="title" href="#" title="<?php echo $row['product_name'];?>"><?php echo $row['product_name'];?></a>
                <p class="danhmuc">Danh mục: <a href="#" class="mercy_color" title="<?php echo $row['cate_name']?>"><?php echo $row['cate_name']?></a></p>
            </div>
        </li>
        <?php if($i%5==0)  echo "</ul><ul>";?>
        <?php } ?>
    </ul>
</div>
<div class="prod_hot left">
    <h2 class="title" style="margin-top:0px;">Ảnh cưới đẹp</h2>
    <ul>
        <?php
        $i = 0;
        $rs = $modelHome->getProductHotByFullParent(1,0,5);

        while($row = mysql_fetch_assoc($rs)){
            $url_images = str_replace("../upload", "../upload/c",$row['url_images']);
            $i++;
        ?>
        <li <?php echo ($i == 5) ? "class='end'" : ""; ?>>
            <a href="#"><img src="<?php echo str_replace("../upload", "upload/c",$row['url_images'])?>" align="absmiddle" /></a>
            <div class="mask_pro" style="display:none;">
                <a class="title" href="#" title="<?php echo $row['product_name'];?>"><?php echo $row['product_name'];?></a>
                <p class="danhmuc">Địa điểm: <a href="#" class="mercy_color" title="<?php echo $row['cate_name']?>"><?php echo $row['cate_name']?></a></p>
            </div>
        </li>
        <?php } ?>
    </ul>
</div>
<div class="prod_hot left">
    <h2 class="title" style="margin-top:0px;">Dịch vụ cưới yêu thích</h2>
    <ul>
        <?php
        $i = 0;
        $rs = $modelHome->getProductHotByFullParent(3,0,5);

        while($row = mysql_fetch_assoc($rs)){
            $url_images = str_replace("../upload", "../upload/c",$row['url_images']);
            $i++;
        ?>
        <li <?php echo ($i == 5) ? "class='end'" : ""; ?>>
            <a href="#"><img src="<?php echo str_replace("../upload", "upload/c",$row['url_images'])?>" align="absmiddle" /></a>
            <div class="mask_pro" style="display:none;">
                <a class="title" href="#" title="<?php echo $row['product_name'];?>"><?php echo $row['product_name'];?></a>
                <p class="danhmuc">Dịch vụ: <a href="#" class="mercy_color" title="<?php echo $row['cate_name']?>"><?php echo $row['cate_name']?></a></p>
            </div>
        </li>
        <?php } ?>        
    </ul>
</div>
</div>